<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class RemoveAddressFromPlacesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('places', function(Blueprint $table) {
            $table->dropColumn('house');
            $table->dropColumn('street');
            $table->dropColumn('sangkat');
            $table->dropColumn('khan');
            $table->dropColumn('city');
            $table->dropColumn('tel');
            $table->dropColumn('phone');
            $table->dropColumn('email');
            $table->dropColumn('website');
            $table->dropColumn('lat');
            $table->dropColumn('lng');
            $table->dropColumn('province_id');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('places', function(Blueprint $table) {
            $table->string('house');
            $table->string('street');
            $table->string('sangkat');
            $table->string('khan');
            $table->string('city');
            $table->string('tel');
            $table->string('phone');
            $table->string('email');
            $table->string('website');
            $table->string('lat');
            $table->string('lng');
            $table->integer('province_id');
        });
    }

}
